import request from '@/utils/request'


// 添加文章分类列表
export function getCateLists(data) {
  return request({
    url: '/adminapi/articleNew/getCateList',
    method: 'post',
    data
  })
}
// 编辑文章分类
export function SaveArticleCate(data) {
  return request({
    url: '/adminapi/articleNew/SaveArticleCate',
    method: 'post',
    data
  })
}

// 获取分类列表
export function queryArticleCateList(data) {
  return request({
    url: '/adminapi/articleNew/queryArticleCateList',
    method: 'post',
    data
  })
}
// 添加或者编辑文章
export function SaveArticleNew(data) {
  return request({
    url: '/adminapi/articleNew/SaveArticleNew',
    method: 'post',
    data
  })
}
// 获取文章列表
export function getArticleNewList(data) {
  return request({
    url: '/adminapi/articleNew/getArticleNewList',
    method: 'post',
    data
  })
}
// 删除文章
export function delArticleNew(data) {
  return request({
    url: '/adminapi/articleNew/delArticleNew',
    method: 'post',
    data
  })
}
//删除文章分类
export function deleteCate(data) {
  return request({
    url: '/adminapi/articleNew/deleteCate',
    method: 'post',
    data
  })
}
//获取分类
export function getDictionaryTypeList(data) {
  return request({
    url: 'adminapi/Dictionary/getDictionaryTypeList',
    method: 'post',
    data
  })
}

